import request from '@/utils/request'

// 查询项目管理表列表
export function listApplication(query) {
    return request({
        url: '/resource/application/list',
        method: 'get',
        params: query
    })
}

// 查询项目管理表详细
export function getApplication(id) {
    return request({
        url: '/resource/application/' + id,
        method: 'get'
    })
}

// 新增项目管理表
export function addApplication(data) {
    return request({
        url: '/resource/application',
        method: 'post',
        data: data
    })
}

// 修改项目管理表
export function updateApplication(data) {
    return request({
        url: '/resource/application',
        method: 'put',
        data: data
    })
}

export function getAppList() {
    return request({
        url: '/resource/application/getAppList',
        method: 'get'
    })
}


// 删除项目管理表
export function delApplication(id) {
    return request({
        url: '/resource/application/' + id,
        method: 'delete'
    })
}
